package com.liurong.domain;

import java.io.Serializable;

/**
 * 资源表
 * 
 * @author lr
 *
 */
public class SysPermission implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 资源id
	 */
	private Long id;
	
	/**
	 * 资源名字
	 */
	private String name;

	/**
	 * 资源类型:menu or button
	 */
	private String type;
	
	/**
	 * 资源的url
	 */
	private String url;
	
	/**
	 * 权限代码字符串
	 */
	private String precode;

	/**
	 * 父节点id
	 */
	private Long parentid;
	
	/**
	 * 父节点id列表串
	 */
	private String paretids;
	
	/**
	 * 排序字段
	 */
	private String sortstring;
	
	/**
	 * 是否可用 1代表可用，其他代表不可用
	 */
	private int available;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPrecode() {
		return precode;
	}

	public void setPrecode(String precode) {
		this.precode = precode;
	}

	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public String getParetids() {
		return paretids;
	}

	public void setParetids(String paretids) {
		this.paretids = paretids;
	}

	public String getSortstring() {
		return sortstring;
	}

	public void setSortstring(String sortstring) {
		this.sortstring = sortstring;
	}

	public int getAvailable() {
		return available;
	}

	public void setAvailable(int available) {
		this.available = available;
	}

	@Override
	public String toString() {
		return "SysPermission [id=" + id + ", name=" + name + ", type=" + type
				+ ", url=" + url + ", precode=" + precode + ", parentid="
				+ parentid + ", paretids=" + paretids + ", sortstring="
				+ sortstring + ", available=" + available + "]";
	}
}
